home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / ctldlt.zip / CTLDTL.H < prev    next >
C/C++ Source or Header  |  1992-09-09  |  2KB  |  43 lines

  1. //----------------------------------------------------------------------
  2. // Defines for Dialog Box that is displayed in workshop
  3. #define CTLDTLDLG        200
  4. #define IDD_TITLE           210
  5. #define IDD_IDTEXT          220
  6. #define IDD_IDNUM           230
  7. #define IDD_IDRED           240
  8. #define IDD_IDGREEN         250
  9. #define IDD_IDBLUE          260
  10. #define IDB_PALETTE         270
  11. ///----------------------------------------------------------------------
  12. // Define for Digital Control Messages
  13. #define CR_COLOR            WM_USER + 0
  14. //----------------------------------------------------------------------
  15. extern "C" WORD FAR PASCAL _export CTLDTLGetVersion(void);
  16. extern "C" int FAR PASCAL  _export CTLDTLAbout(void);
  17. //----------------------------------------------------------------------
  18. _CLASSDEF(TDigital)                  // New Custom Control Class
  19. class TDigital : public TStatic      // To add a Digital Control to
  20.   {                                  // Resource Workshop and allow
  21.   public:                            // Control to be used as control
  22.     TDigital(PTWindowsObject AParent, int AnId,
  23.              int X, int Y, int W, int H,
  24.              LPSTR ATitle = "A12:01~255~0~0~",
  25.              WORD  ATextLen = 15,
  26.              PTModule AModule = NULL);
  27.     TDigital(PTWindowsObject AParent, int ResourceId,
  28.              PTModule AModule = NULL);
  29.     int Parse(int StartChar);
  30.     void SetupWindow();
  31.     void Color(COLORREF NewColor);       //User callable interface funtion
  32.     int DisplayChar(char cDisplayChar, int nXOffset);
  33.     void WMColor(RTMessage Msg) = [CR_COLOR];
  34.     void WMPaint(RTMessage Msg) = [WM_FIRST + WM_PAINT];
  35.     LPSTR GetClassName();
  36.   private:
  37.     char           szBuffer[80];     // Line Buffer
  38.     char           szTitle[255];     // Control Title
  39.     char           szText[255];      // Display Text
  40.     COLORREF       DisplayColor;     // Line Color
  41.   };
  42. //----------------------------------------------------------------------
  43.